﻿@model IEnumerable<CircleCut.Models.Input>

@{
    ViewBag.Title = "Inputs";
}

<h2 style="color:yellowgreen;text-align:center">需求列表</h2>

<p>
    @Html.ActionLink("新增 需求", "Create")   
    @using (Html.BeginForm("Index", "Inputs", FormMethod.Get))
    {
    <p> 
        编号: @Html.DropDownList("searchNumber", "All")
       <!-- 直径: @Html.TextBox("searchString") <br /><br /> -->
        <input type="submit" value="检索" />
    </p>
    }    
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Number)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Length)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Width)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DiaTotalNum)
        </th>

      
        

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Length)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Width)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DiaTotalNum)
        </td>

       

        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详情", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
